from django.conf.urls.static import static
from django.conf import settings
from django.urls import path
from web.api.users import user as user_api
urlpatterns = [
    # api
    path('api/users/user/register/', user_api.user_register), # 用户注册
    path('api/users/user/login/', user_api.user_login), # 用户登录
    path('api/users/user/update_password/', user_api.user_update_password), # 用户更新密码
    path('api/users/user/delete/', user_api.user_delete), # 用户删除
    path('api/users/user/query/', user_api.user_query), # 用户查询
    path('api/users/user/platform_users/', user_api.platform_users), # 平台用户查询
]
# 添加媒体文件URL配置
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)